@import '@/lib/reset.scss';

.top {
  @include rect(100%, 230px);
  @include background-color(#ffffff);
  padding: 30px 0 40px 0;
  position: relative;
  .userImg {
    @include rect(160px, 160px);
    border-radius: 50%;
    background: url(http://img5.duitang.com/uploads/item/201410/05/20141005082835_2RTzn.thumb.700_0.jpeg) no-repeat center;
    background-size: 160px 160px;
    float: left;
    margin-right: 48px;
  }
  h1 {
    font-size: 34px;
  }
  p {
    color: #909090;
    font-size: 12px;
  }
  .btns {
    position: absolute;
    right: 0;
    top: 30px;
    width: 166px;
    height: 160px;
    text-align: center;
    button {
      border: none;
      color: #fff;
      font-size: 15px;
      background: #DD3915;
      width: 120px;
      padding: 1em 2em;
    }
    .follow {
      padding: 10px 10px;
      background: #F5F6F5;
      margin-top: 50px;
      li {
        display: inline-block;
        width: 68px;
        height: 38px;
        p {
          color: #333;
          font-size: 12px;
        }
        span {
          color: #DD3915;
          font-weight: 700;
          font-size: 16px;
        }
      }
      li:nth-of-type(1) {
        border-right: 1px solid #909090;
      }
    }
  }
}
.headar_nav {
  @include rect(100%, 48px);
  margin-bottom: 35px;
  ul {
    @include rect(100%, 100%);
    background-color: #f5f6f5;
    li {
      float: left;
      text-align: center;
      line-height: 48px;
      background-color: #f5f6f5;
      border-right: 2px solid #fff;
      a {
        color: #222;
        padding: 14px 22px;
        font-size: 16px;
        &:hover, &.active {
          color: #fff;
          background-color: #DD3915;
          border: none;
        }
      }
    }
    li:nth-of-type(6) {
      float: right;
      border: none;
    }
    li:nth-of-type(7) {
      float: right;
      border-left: 2px solid #fff;
    }
  }
}
// 默认页样式
.cook {
  width: 100%;
  min-height: 200px;
  h3 {
    width: 100%;
    height: 33px;
    line-height: 33px;
    margin: 18px 0;
    font-size: 1.17em;
    font-weight: 700;
    span{
      font-size: 12px;
    }
    a{
      padding:2px;
      font-size: 12px;
      color: #DD3915;
      &:hover{
        color: #fff;
        background: #DD3915;
      }
    }
  }
  // .cook_list {
  //   width: 100%;
  //   ul {
  //     width: 1080px;
  //     li {
  //       @include rect(280px, 295px);
  //       float: left;
  //       margin: 0 80px 30px 0;
  //       border: 1px solid #f3f3f3;
  //       img {
  //         @include rect(280px, 216px);
  //       }
  //       a {
  //         @include rect (100%, 28px);
  //         font-size: 16px;
  //         font-weight: 400;
  //         line-height: 28px;
  //         color: #222;
  //         display: inline-block;
  //         margin-top: 20px;
  //         text-indent: 10px;
  //       }
  //       span {
  //         height: 14px;
  //         line-height: 14px;
  //         color: #909090;
  //         font-size: 12px;
  //         text-indent: 5px;
  //         display: inline-block;
  //       }
  //       .sp1 {
  //         margin-left: 5px;
  //       }
  //       .sp2 {
  //         padding-right: 5px;
  //         border-right: 1.5px solid #909090;
  //       }
  //       .uid {
  //         color: #909090;
  //         font-size: 12px;
  //         margin: 0 5px;
  //         display: inline;
  //         &:hover {
  //           background: #909090;
  //           color: #fff;
  //         }
  //       }
  //     }
  //   }
  // } 
}
//菜谱页样式
.book {
  @include rect (100%, auto);
  button {
    @include rect (105px, 42px);
    line-height: 42px;
    text-align: center;
    border: none;
    background: #dd3915;
    color: #fff;
    font-size: 15px;
    float: right;
  }
  .cont {
    @include rect (920px, auto);
    text-align: center;
    float: left;
    font-size: 16px;
    color: #222;
    padding: 0 40px;
  }
}
// 作品页样式
.worked {
  @include rect (100%, auto);
  .worked_cont {
    @include rect (920px, auto);
    text-align: center;
    float: left;
    font-size: 16px;
    color: #222;
    padding: 40px;
    a {
      color: #dd3915;
      margin: 0 5px;
    }
  }
}
// 菜单页样式
// 作品页样式
.menu {
  @include rect (100%, auto);
  .menu_cont {
    @include rect (1000px, auto);
    padding: 0 40px;
    overflow: hidden;
    p {
      float: left;
      font-size: 16px;
      :nth-of-type(1){
        color: #222;
        padding: 0 5px;
      }
      :nth-of-type(2){
        padding: 0 5px;
        color: #DD3915;
        &:hover{
          background: #DD3915;
          color: #fff;
        }
        &:active{
          color: #333;
        }
      }
    }
    button {
      float: right;
      border: 0;
      background: none;
      font-size: 16px;
      color: #DD3915;
    }
  }
  .menu-list{
    margin-top:40px;
    ul{
      width: 100%;
      li{
        padding: 15px 0;
        border-bottom: 1px dotted #f3f3f3;
        overflow: hidden;
        padding-bottom: 10px;
        a{
          color: #DD3915;
          font-size: 16px;
          line-height: 1.8;
          padding: 0 5px;
        }
        span{
          color: #222;
          font-size: 16px;
          line-height: 1.8;
          padding: 0 5px;
        }
      }
    }
  }
}

  .right {
    @include rect(790px, 100%);
    float: right;
    ul {
      @include rect(791px, auto);
      padding: 30px 30px 30px 40px;
      li {
        padding: 15px 10px;
        @include rect(721px, 134px);
        margin-bottom: 5px;
        img {
          @include rect(140px, 106px);
          float: left;
          margin-right: 25px;
        }
        .title {
          color: #dd3915;
          font-size: 16px;
          line-height: 1.8;
          padding: 2px;
          &:hover {
            background: #dd3915;
            color: #fff;
          }
        }
        .ellipsis {
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          max-width: 100%;
          vertical-align: top;
          font-size: 12px;
          color: #909090;
          line-height: 1.8;
        }
        .pingfen {
          font-size: 12px;
          color: #909090;
          line-height: 1.8;
          .red-font {
            color: #dd3915;
            font-weight: 700;
            font-size: 12px;
            line-height: 1.8;
          }
        }
        .gray-link {
          font-size: 12px;
          color: #909090;
          &:hover {
            background: #909090;
            color: #fff;
          }
        }
        .delete {
          display: none;
          border: none;
          background: #F5F6F5;
          font-size: 12px;
          color: #909090;
          padding: 0 2px;
          float: right;
          &:hover {
            background: #909090;
            color: #fff;
          }
        }
        &:hover {
          background: #f7f5f3;
          .delete {
            display: block;
          }
        }
      }
    }
  }

  

.cook-container{
  margin: 0 auto;
  color: rgb(59, 58, 58);
  .cook-container-list{
    width:1000px;
    // height:800px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    li{
      width: 278px;
      // height: 482px;
      border:1px solid #eee;
      margin-bottom: 30px;
      .cook-containerImg{
        width: 278px;
        height: 280px;
        border: 1px solid #f3f3f3;
        img{
          width: 100%;
          height: 100%;
        }
      }
      h2{
        width: 278px;
        height: 50px;
        line-height: 50px;
        margin-left: 10px;
        font-size: 16px;
        color: #DD3915;
      }
      .cook-name{
        padding:0 20px 0 10px;
        
      }
      .cook-red{
        height: 60px;
        line-height: 60px;
        :nth-child(1){
          margin-left: 10px;
          float: left;
        }
        :nth-child(2){
          float: right;
          margin-right: 8px;
        }
        :nth-child(3){
          float: right;
          margin-right: 10px;
        }
      }
     
    }
  }
}
  
